package com.lxmes.pm.service.impl;

import java.util.List;
import com.lxmes.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.pm.mapper.AProjectChangeMapper;
import com.lxmes.pm.domain.AProjectChange;
import com.lxmes.pm.service.IAProjectChangeService;

/**
 * 项目转化Service业务层处理
 * 
 * @author zhangzhiyu
 * @date 2023-04-04
 */
@Service
public class AProjectChangeServiceImpl implements IAProjectChangeService 
{
    @Autowired
    private AProjectChangeMapper aProjectChangeMapper;

    /**
     * 查询项目转化
     * 
     * @param id 项目转化主键
     * @return 项目转化
     */
    @Override
    public AProjectChange selectAProjectChangeById(Long id)
    {
        return aProjectChangeMapper.selectAProjectChangeById(id);
    }

    /**
     * 查询项目转化列表
     * 
     * @param aProjectChange 项目转化
     * @return 项目转化
     */
    @Override
    public List<AProjectChange> selectAProjectChangeList(AProjectChange aProjectChange)
    {
        return aProjectChangeMapper.selectAProjectChangeList(aProjectChange);
    }

    /**
     * 新增项目转化
     * 
     * @param aProjectChange 项目转化
     * @return 结果
     */
    @Override
    public int insertAProjectChange(AProjectChange aProjectChange)
    {
        aProjectChange.setCreateTime(DateUtils.getNowDate());
        return aProjectChangeMapper.insertAProjectChange(aProjectChange);
    }

    /**
     * 修改项目转化
     * 
     * @param aProjectChange 项目转化
     * @return 结果
     */
    @Override
    public int updateAProjectChange(AProjectChange aProjectChange)
    {
        aProjectChange.setUpdateTime(DateUtils.getNowDate());
        return aProjectChangeMapper.updateAProjectChange(aProjectChange);
    }

    /**
     * 批量删除项目转化
     * 
     * @param ids 需要删除的项目转化主键
     * @return 结果
     */
    @Override
    public int deleteAProjectChangeByIds(Long[] ids)
    {
        return aProjectChangeMapper.deleteAProjectChangeByIds(ids);
    }

    /**
     * 删除项目转化信息
     * 
     * @param id 项目转化主键
     * @return 结果
     */
    @Override
    public int deleteAProjectChangeById(Long id)
    {
        return aProjectChangeMapper.deleteAProjectChangeById(id);
    }
}
